<%@ page language="java" contentType="text/html; charset=UTF-8"	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<%
	request.setAttribute("brEnter", "\n");//用于替换xml中的换行符
%>
<x:parse var="xmlData" xml="${param.xmlstr}"/>
<c:set var="grantCode"><x:out select="$xmlData/data/proposal/grant_code" /></c:set>
<c:choose>
<c:when test="${grantCode == 508}"><c:set var="title">其他主要参加单位</c:set></c:when>
<c:otherwise><c:set var="title">合作单位信息</c:set></c:otherwise>
</c:choose>
	<table class="TblList" align="center">
			<col style="width: 20%" />
			<col style="width: 30%" />
			<col style="width: 20%" />
			<col style="width: 30%" />
			<tr>
				<td colspan="4" style="text-align: left; font-family: SimHei;font-size: 10.5pt;"
					class="td_bgcolor">${title }</td>
			</tr>
			</table>
			<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/attendorgs/attendorg" var="attendorg">
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
		<table class="TblList" align="center">
			<col style="width: 20%" />
			<col style="width: 30%" />
			<col style="width: 20%" />
			<col style="width: 30%" />
						<tr>
									<td class="td_bgcolor">单位<x:out select="$attendorg/@seq_no"/>名称</td>
									<td colspan="3">
										<x:out select="$attendorg/cname"/>
									</td>
						</tr>
						<tr>
						            <td  class="td_bgcolor">单位地址</td>
									<td colspan="3">
									<x:out select="$attendorg/address"/>
									</td>
						</tr>
						<tr>
									<td class="td_bgcolor">联系人</td>
									<td >
										<x:out select="$attendorg/contact_psn_name"/>
									</td>
									<td class="td_bgcolor">联系电话</td>
									<td >
									<x:out select="$attendorg/contact_psn_tel"/>
									</td>
						</tr>
				</table>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
